﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.BLL.GroupMember;
using System.Data;

namespace MINERP.GroupMember.Presenter
{
    public class TaskHistoryPresenter
    {
        private FrmHistory _view;
        private GroupMemberBLL _bll;

        public TaskHistoryPresenter(FrmHistory view)
        {
            _view = view;
            _bll = new GroupMemberBLL();
        }
        internal void FilterDs(DateTime start_dateTime, DateTime end_dateTime)
        {
            int picCount = 0;
            double picAreaCount = 0;
            //DataTable dtSource = _bll.GetHistoryFilter(_view.UserId, start_dateTime.Date, end_dateTime.Date,out picCount,out picAreaCount);
            DataTable dtSource = _bll.GetHistoryFilterAll(_view.UserId, start_dateTime.Date, end_dateTime.Date);
            _view.InitialData(dtSource, picCount, picAreaCount);
        }
    }
}
